-- Modified slightly 8/22/88 by Joe McMahon to make sure that
--"set the script…" (vs. "set script") doesn't slip through.
-- Modified a bit more 8/29/88 by Joe McMahon to add Ian's fixes
-- to prevent the vaccine from detecting itself as a virus.
on set
put "Duk"&"akis" into duk
if the param of 1 is "script" or the param of 2 is "script" then
get the params
if last word of it is "to" then put it && "empty" into it
put it into s
if s contains duk then
repeat 10
play harpsichord tempo 300 "a b c b a b c b"
end repeat
answer duk&&"virus detected!" with "Halt scripts"
answer "Okay, you’re safe now! It didn’t spread."
exit to HyperCard
end if
play harpsichord tempo 200 "e c e c e c e"
answer "Warning: Script change requested" with "Show me"
repeat
answer s with "Allow" or "Stop!" or "Show more"
if it is "Allow" then pass set
else
if it is "Stop!" then
answer "All scripts halted!"
exit to HyperCard
else
put the userLevel into userSafe
set userLevel to 5
doMenu "New Field"
get the number of card fields
set rect of card field it to 0,19,512,342
set style of card field it to scrolling
put the params into card field it
choose browse tool
wait until not the mouseClick
wait until the mouseClick
choose field tool
click at loc of card field it
doMenu "Clear Field"
choose browse tool
set userLevel to userSafe
end if
end if
end repeat
else pass set
end set
-- part contents for background part 10
----- text -----
Dukakis Vaccine
-- part contents for background part 12
----- text -----
Virus Prevention Programs
-- part contents for background part 2
----- text -----
The Dukakis Vaccine was written by Ian Summerfield. It is a HyperCard script designed to both detect the Dukakis virus and to prevent its invasion into stacks. The script is general enough to be of utility in blocking other HyperCard-only viruses.
Dukakis Vaccine only monitors changes to scripts; it cannot block viral XCMDs or XFCNs. It does not remove the virus, but blocks it and alerts you to the virus's presence.
-- part contents for background part 16
----- text -----
Version: 8/29/88
-- part contents for background part 11
----- text -----
The Dukakis Vaccine can be installed in your home card using the above button.